/*
	Appendix Table 2 
	Effects of political sophistication on correct WST response for Study 1.
	Please set the working directory to the folder where the data files are located.
	The regression result table will be created in the same folder.
	
	Note: To keep the complete data for variable "sophistication", the data file
	is saved as ".xlsx" format.
*/

log using 6_appendix.log, replace
clear
import excel "study1_all_tasks.xlsx", sheet("Sheet1") firstrow
logit correct sophistication age female occupation education party if task=="voice"
est sto voice
logit correct sophistication age female occupation education party if task=="ideology"
est sto ideology

local s "using Table2.rtf"  
local m "voice ideology"

esttab `m' `s', mtitle(`m') nogap compress replace   ///
         b(%12.3f) se(%12.3f) pr2 drop(`drop')   ///
         star(* 0.1 ** 0.05 *** 0.01)

log close
